import request from '@/config/axios'
export interface GetBpmReportRes {
  /* */
  code: number

  /* */
  data: {
    /*待办数量 */
    todoCount: number

    /*已办数量 */
    doneCount: number

    /*抄送数量 */
    copyCount: number

    /*提单数量 */
    sendCount: number
  }

  /* */
  msg: string
}

/**
 * 查询各项审批记录条目数量
 * @returns
 */
export function getBpmReport(): Promise<GetBpmReportRes> {
  return request.get({ url: `/bpm/process-report/count` })
}
